/* zhengYu */

import request from '@/utils/request'

// 查询用户签约记录列表
export function listDocContract(query) {
  return request({
    url: '/contractManagement/docContract/list',
    method: 'get',
    params: query
  })
}

// 查询用户签约记录详细
export function getDocContract(contractId) {
  return request({
    url: '/contractManagement/docContract/' + contractId,
    method: 'get'
  })
}

// 新增用户签约记录
export function addDocContract(data) {
  return request({
    url: '/contractManagement/docContract',
    method: 'post',
    data: data
  })
}

// 修改用户签约记录
export function updateDocContract(data) {
  return request({
    url: '/contractManagement/docContract',
    method: 'put',
    data: data
  })
}

// 删除用户签约记录
export function delDocContract(contractId) {
  return request({
    url: '/contractManagement/docContract/' + contractId,
    method: 'delete'
  })
}
